const show = document.querySelector('.show')
const infoTitle = document.querySelector('.info-title')


fn()
async function fn() {
    const res = await pAjax({
        url: '/aa',
        data: `ids=100162803&with_stock=true&with_spu=true`,
        dataType: 'json'
    })

    const z1 = await pAjax({
        url: '/aa',
        data: `ids=100162803&with_stock=true&with_spu=true`,
        dataType: 'json'
    })

    res.data.list.forEach(item => {
        const height = item.shop_info.ali_image * 218 / item.shop_info.ali_image
        const str = `
            <img src="${item.shop_info.ali_image}" alt="">
        `
        show.innerHTML += str
    })

    z1.data.list.forEach(item => {
        const height = item.shop_info.ali_image * 218 / item.shop_info.ali_image
        const str = `
        <h1>${item.shop_info.title}</h1>
        <h2>${item.shop_info.sub_title}</h2>
    `
        infoTitle.innerHTML += str
    })


    // 页面渲染完毕了
    const e = new Enlarge('#box')
    console.log(e)
}


